#Target
TgtFile = comm

SrcFile0 = comm
SrcFile1 = dp3101
SrcFile2 = dp3201
SrcFile3 = modem
SrcFile4 = revutl
SrcFile5 = spdmodem
SrcFile6 = syncdial
SrcFile7 = syncdial_india
SrcFile8 = synctask

# App Source Paths
SrcDir = C:\softpay\ver30\SOURCE\COMM

AppObjects = \
	$(OBJ_DIR)\$(SrcFile0).o  \
	$(OBJ_DIR)\$(SrcFile1).o  \
	$(OBJ_DIR)\$(SrcFile2).o  \
	$(OBJ_DIR)\$(SrcFile3).o  \
	$(OBJ_DIR)\$(SrcFile4).o  \
	$(OBJ_DIR)\$(SrcFile5).o  \
	$(OBJ_DIR)\$(SrcFile6).o  \
	$(OBJ_DIR)\$(SrcFile7).o  \
	$(OBJ_DIR)\$(SrcFile8).o  

# Compiler Options
MkIncludes = -I $(SDS_INCLUDES) -I $(ACT_INCLUDES) -I $(SP2_INCLUDES) -I $(CLS_INCLUDES) -I $(VVXEMV_INCLUDES) 
COptions = $(GCOPTIONS) -D__K2__ -D_VSC -D_DEBUG -f -s int=2 -s sizeof=2 -r a4 -r a5 -K2 -o $(@)

#  Target Definition Library
$(LIB_DIR)\$(TgtFile).a : $(AppObjects)
	@echo CREATING...Module $(LIB_DIR)\$(TgtFile).a
	@$(SDS)\cmd\liber -cy $(LIB_DIR)\$(TgtFile).a $(AppObjects)


$(OBJ_DIR)\$(SrcFile0).o : $(SrcDir)\$(SrcFile0).c \
		C:\softpay\ver30\SOURCE\INCLUDE\txoinc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\spdmodem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\dp3201.h\
		C:\softpay\ver30\SOURCE\INCLUDE\operate.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\scalls.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ict.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mdlfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\packet.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\card.h\
		C:\softpay\ver30\SOURCE\INCLUDE\check.h\
		C:\softpay\ver30\SOURCE\INCLUDE\list.h\
		C:\softpay\ver30\SOURCE\INCLUDE\udt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\trt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mbtx2.h\
		C:\softpay\ver30\SOURCE\INCLUDE\report.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h\
		C:\softpay\ver30\SOURCE\INCLUDE\codesec.h\
		C:\softpay\ver30\SOURCE\INCLUDE\dp3101.h\
		C:\softpay\ver30\SOURCE\INCLUDE\accum.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\CPT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\confio.h\
		C:\softpay\ver30\SOURCE\INCLUDE\isdn.h\
		C:\softpay\ver30\SOURCE\INCLUDE\passwd.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pwrfids.h\
		C:\softpay\ver30\SOURCE\INCLUDE\funcids.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mdmdefs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Modemmsg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pfr.h\
		C:\softpay\ver30\SOURCE\INCLUDE\util.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Tran.h\
		C:\softpay\ver30\SOURCE\INCLUDE\modem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\dpt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\print.h\
		C:\softpay\ver30\SOURCE\INCLUDE\fields.h\
		C:\softpay\ver30\SOURCE\INCLUDE\batch.h 
	@echo COMPILING...$(SrcFile0).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile0).c | fmterr.exe

$(OBJ_DIR)\$(SrcFile1).o : $(SrcDir)\$(SrcFile1).c \
		C:\softpay\ver30\SOURCE\INCLUDE\Modemmsg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\modem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\init.h\
		C:\softpay\ver30\SOURCE\INCLUDE\dp3101.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\print.h\
		C:\softpay\ver30\SOURCE\INCLUDE\packet.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h 
	@echo COMPILING...$(SrcFile1).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile1).c | fmterr.exe

$(OBJ_DIR)\$(SrcFile2).o : $(SrcDir)\$(SrcFile2).c \
		C:\softpay\ver30\SOURCE\INCLUDE\mem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Modemmsg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\modem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\init.h\
		C:\softpay\ver30\SOURCE\INCLUDE\HDT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\dp3201.h\
		C:\softpay\ver30\SOURCE\INCLUDE\confio.h\
		C:\softpay\ver30\SOURCE\INCLUDE\dpt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\txoinc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\operate.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h 
	@echo COMPILING...$(SrcFile2).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile2).c | fmterr.exe

$(OBJ_DIR)\$(SrcFile3).o : $(SrcDir)\$(SrcFile3).c \
		C:\softpay\ver30\SOURCE\INCLUDE\operate.h\
		C:\softpay\ver30\SOURCE\INCLUDE\table.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h\
		C:\softpay\ver30\SOURCE\INCLUDE\cnt.h\
		C:\softpay\ver30\SOURCE\INCLUDE\date.h\
		C:\softpay\ver30\SOURCE\INCLUDE\menufunc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\confio.h\
		C:\softpay\ver30\SOURCE\INCLUDE\syncdial.h\
		C:\softpay\ver30\SOURCE\INCLUDE\appl.h\
		C:\softpay\ver30\SOURCE\INCLUDE\counter.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mdmdefs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\tmadef.h\
		C:\softpay\ver30\SOURCE\INCLUDE\modem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\funcids.h\
		C:\softpay\ver30\SOURCE\INCLUDE\HDT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\init.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\txoinc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Oper.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Tran.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pfr.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\stats.h\
		C:\softpay\ver30\SOURCE\INCLUDE\pcounter.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Modemmsg.h 
	@echo COMPILING...$(SrcFile3).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile3).c | fmterr.exe

$(OBJ_DIR)\$(SrcFile4).o : $(SrcDir)\$(SrcFile4).c \
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\codesec.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ConfProto.h\
		C:\softpay\ver30\SOURCE\INCLUDE\HDT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\MIT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\tblutil.h\
		C:\softpay\ver30\SOURCE\INCLUDE\revutl.h 
	@echo COMPILING...$(SrcFile4).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile4).c | fmterr.exe

$(OBJ_DIR)\$(SrcFile5).o : $(SrcDir)\$(SrcFile5).c \
		C:\softpay\ver30\SOURCE\INCLUDE\operate.h\
		C:\softpay\ver30\SOURCE\INCLUDE\sdl.h\
		C:\softpay\ver30\SOURCE\INCLUDE\table.h\
		C:\softpay\ver30\SOURCE\INCLUDE\mem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h\
		C:\softpay\ver30\SOURCE\INCLUDE\date.h\
		C:\softpay\ver30\SOURCE\INCLUDE\menufunc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\confio.h\
		C:\softpay\ver30\SOURCE\INCLUDE\util.h\
		C:\softpay\ver30\SOURCE\INCLUDE\spdmodem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\modem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\funcids.h\
		C:\softpay\ver30\SOURCE\INCLUDE\init.h\
		C:\softpay\ver30\SOURCE\INCLUDE\gds.h\
		C:\softpay\ver30\SOURCE\INCLUDE\fields.h\
		C:\softpay\ver30\SOURCE\INCLUDE\txoinc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\TCT.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msgfuncs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\ui.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Tran.h\
		C:\softpay\ver30\SOURCE\INCLUDE\msg.h\
		C:\softpay\ver30\SOURCE\INCLUDE\stats.h\
		C:\softpay\ver30\SOURCE\INCLUDE\transact.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\Modemmsg.h 
	@echo COMPILING...$(SrcFile5).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile5).c | fmterr.exe

$(OBJ_DIR)\$(SrcFile6).o : $(SrcDir)\$(SrcFile6).c \
		C:\softpay\ver30\SOURCE\INCLUDE\mdmdefs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\txoinc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\modem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\syncdial.h 
	@echo COMPILING...$(SrcFile6).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile6).c | fmterr.exe

$(OBJ_DIR)\$(SrcFile7).o : $(SrcDir)\$(SrcFile7).c \
		C:\softpay\ver30\SOURCE\INCLUDE\mdmdefs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\txoinc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\modem.h\
		C:\softpay\ver30\SOURCE\INCLUDE\comm.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\syncdial.h 
	@echo COMPILING...$(SrcFile7).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile7).c | fmterr.exe

$(OBJ_DIR)\$(SrcFile8).o : $(SrcDir)\$(SrcFile8).c \
		C:\softpay\ver30\SOURCE\INCLUDE\mdmdefs.h\
		C:\softpay\ver30\SOURCE\INCLUDE\txoinc.h\
		C:\softpay\ver30\SOURCE\INCLUDE\SPDebug.h\
		C:\softpay\ver30\SOURCE\INCLUDE\syncdial.h 
	@echo COMPILING...$(SrcFile8).c
	@$(SDS)\cmd\cc68000 -E- $(MkIncludes) $(COptions) $(SrcDir)\$(SrcFile8).c | fmterr.exe

